<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <ul class="layui-nav layui-layout-left">
            <!-- 移动端显示 -->
            <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
                <i class="layui-icon layui-icon-spread-left"></i>
            </li>
            <li class="layui-nav-item layui-hide-xs"><a href="/" class="layui-btn" target="_blank">主页</a></li>
            <li id="goadmin" class="layui-nav-item layui-hide-xs"><a href="/admin/index.php" class="layui-btn" target="_blank">进入后台管理</a></li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item layui-hide layui-show-sm-inline-block">
                <i id="usename" style="display: none;" class="layui-icon layui-icon-face-smile"></i>
            </li>
            <li class="layui-nav-item layui-hide layui-show-sm-inline-block">
                <a id="logi" href="<?=getUrl('','login')?>" class="layui-btn" target="_blank">登录</a>
            </li>
            <li class="layui-nav-item layui-hide layui-show-sm-inline-block">
                <a id="logout" href="/admin/api/logout.php?out=ture" onclick="changePage()" class="layui-btn" target="_blank">退出</a>
            </li>
        </ul>
    </div>
</div>